import httpRequest from '@/request'
import appConfig from '@/config/index'

// 固件升级列表
export function firmwareUpdateListPage (params: any) {
  return httpRequest({
    url: `${appConfig.api}firmware/upgradesearch`,
    method: 'post',
    data: params
  })
}

// 固件升级
export function firmwareUpdateCmd (params: any) {
  return httpRequest({
    url: `${appConfig.api}firmware/sendupgradecmd`,
    method: 'post',
    data: params
  })
}

// 固件升级日志
export function firmwareUpdateLogListPage (params: any) {
  return httpRequest({
    url: `${appConfig.api}firmware/logsearch`,
    method: 'post',
    data: params
  })
}
